<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!--返回错误信息-->
<?php echo validation_errors(); ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <?php

//        print_r($list);
//        die();
    $title = [
        'title' => '编辑进货单',
    ];
    $this->load->view('/admin/common/header', $title);
    ?>
</head>

<body data-type="widgets">
<script src="/assets/js/theme.js"></script>
<div class="am-g tpl-g">

    <!--    头部   侧边菜单-->
    <?php $this->load->view('/admin/common/bodyLeft'); ?>
    <script type="text/javascript">
    	$(".js-sidebar-nav>li:nth-child(7)>ul").show(80);
    	$(".js-sidebar-nav>li:nth-child(7)>a>span").addClass("sidebar-nav-sub-ico-rotate");
    	$(".js-sidebar-nav>li:nth-child(7)>ul>li:nth-child(3)>a").addClass("active");
    </script>
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title  am-cf">
                                <ol class="am-breadcrumb am-breadcrumb-slash">
                                    <li><a href="/admin/procurement/index?page=1">采购管理</a></li>
                                    <li><a href='/admin/procurement/purchaseOrder?page=1&needCode=<?php echo $list['needCode'] ?>'>采购进货单</a></li>
                                    <li class="am-active">编辑进货单</li>
                                </ol>
                            </div>
                        </div>
                        <form method="post" enctype="multipart/form-data" class="am-form am-text-sm" id="submitForm">
                            <input type="hidden" name="type" value="采购需求单">
                            <div class="widget-body  am-fr append">
                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        基本信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <!-- Row start -->
                                        <div class="am-u-sm-12">
                                                <div class="am-u-md-6">
                                                    <!--<form class="am-form am-text-sm">-->
                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="purchaseCode">进货单编号：</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="purchaseCode" value="<?php echo $list['purchaseCode'] ?>"
                                                                   id="purchaseCode" readonly>
                                                            </div>
                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="name">进货单名称：</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="name" value="<?php echo $list['name'] ?>"
                                                                   id="name" readonly> 
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="documentTime">单据时间</label>
                                                           <!--  <input class="am-u-md-10 form-control" name="documentTime" value="<?php echo date('Y-m-d',$list['documentTime']) ?>"
                                                                   id="documentTime"> -->
                                                            <div class="am-u-md-10">
                                                                <input type="text" class=" am-form-field" placeholder="选择单据时间" data-am-datepicker readonly  name="documentTime" id="documentTime" value="<?php echo date('Y-m-d',$list['documentTime']) ?>"/>
                                                           </div>
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="source">所属项目</label>
                                                            <div class="am-u-md-10">
                                                                <?php
                                                                if($list['status'] !=0 ){
                                                                    echo '<input  type="text" name="source" value='.$list['source'].' readonly>';
                                                                }else{
                                                                    echo '<select class="form-control" name="source" id="source" data-am-selected="{btnWidth: \'100%\',maxHeight: 200}">

                                                                    ';
                                                                    foreach ($project as $k=>$v){
                                                                        if($v['name'] == $list['source']){
                                                                        echo '<option value="'.$v['name'].'" selected>'.$v['name'].'</option>';

                                                                    }else{
                                                                        echo '<option value="'.$v['name'].'">'.$v['name'].'</option>';

                                                                    }
                                                                    }
                                                                    echo '</select>';
                                                                }
                                                                ?>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="content">申请原因</label>
                                                            <div class="am-u-md-10">
                                                                <textarea rows="5" name="content"
                                                                      id="content" readonly><?php echo $list['content'] ?>
                                                            </textarea>
                                                            </div>

                                                            
                                                    </div>
                                                    <!--                                                    </form>-->
                                                </div>

                                                <div class="am-u-md-6">
                                                    <!--                                                    <form class="am-form am-text-sm">-->
                                                    <?php
                                                        if($list['needCode']){
                                                            echo '<div class="am-form-group am-u-md-12">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="needCode">关联需求单：</label>
                                                                <div class="am-u-md-10">
                                                                    <input type="text" name="needCode" value="'.$list['needCode'].'"  id="needCode" readonly>
                                                                </div>
                                                        </div>';
                                                        }else{
                                                            
                                                        }
                                                    ?>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="supplier">供应商：</label>
                                                            <div class="am-u-md-10">
                                                                <?php
                                                                if($list['status'] !=0 ){
                                                                    echo '<input  type="text" name="supplier" value='.$list['supplier'].' readonly>';
                                                                }else{
                                                                    echo '<select class="form-control" name="supplier" id="supplier" data-am-selected="{btnWidth: \'100%\',maxHeight: 200}">';
                                                                    foreach ($supplier as $v2){
                                                                        if($v2['name'] == $list['supplier']){
                                                                            echo '<option value="'.$v2['name'].'" selected>'.$v2['name'].'</option>';

                                                                        }else{
                                                                            echo '<option value="'.$v2['name'].'">'.$v2['name'].'</option>';

                                                                        }
                                                                    }
                                                                    echo '</select>';
                                                                }
                                                                ?>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="expectEndTime">期望到货时间</label>
                                                            <!-- <input class="am-u-md-10 form-control" name="expectEndTime" value="<?php echo date('Y-m-d',$list['expectEndTime']) ?>"
                                                                   id="expectEndTime"> -->
                                                            <div class="am-u-md-10">
                                                                <input type="text" class=" am-form-field" placeholder="选择期望到货时间" data-am-datepicker  name="expectEndTime" id="expectEndTime" readonly value="<?php echo date('Y-m-d',$list['expectEndTime']) ?>"/>
                                                            </div>
                                                    </div>

                                                    <div class="am-form-group am-u-md-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0 must"
                                                                   for="createMan">制单人：</label>
                                                            <div class="am-u-md-10">
                                                                 <input  type="text"  name="createMan" value="<?php echo $list['createMan'] ?>"
                                                                   id="createMan" readonly>
                                                            </div>

                                                           
                                                    </div>

                                                    <!--                                                    </form>-->
                                                </div>
                                        </div>
                                        <!-- Row end -->
                                    </div>
                                    <hr>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        详细信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-u-sm-12">
                                        <table width="100%"
                                               class="am-table am-table-compact am-table-striped tpl-table-black "
                                               id="example-r">
                                            <thead>
                                            <tr>
                                                <th style="width: 5%">序号</th>
                                                <th style="width: 15%">商品编码</th>
                                                <th style="width: 10%">商品名称</th>
                                                <th style="width: 15%">商品规格</th>
                                                <th style="width: 5%">单位</th>
                                                <th style="width: 10%">进货数量</th>
                                                <th style="width: 10%">进货单价(元)</th>
                                                <th style="width: 10%">进货金额(元)</th>
                                                <th style="width: 20%">备注</th>
                                            </tr>
                                            </thead>
                                            <tbody id="goodsMessage">
                                            <?php

                                              foreach ($list['goodsMessage'] as $k=>$v){
                                                        echo '<tr class="line">
                                              
                                                   <td class="order">'.$v['order'].'</td>
                                                <td data-id="'.$v['dataId'].'" class="product_no">'.$v['product_no'].'</td>
                                                <td class="name">'.$v['name'].'</td>
                                                <td class="specification"   >'.html_entity_decode($v['specification']).'</td>
                                                <td class="goodsUnit">'.$v['goodsUnit'].'</td>';

                                                  if($list['status'] != 0 || strstr($v['specification'], '商品规格+')){
                                                            echo '<td>
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control quantity" value="'.$v['quantity'].'" readonly>
                                                    </div>
                                                </td>
                                                <td >
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control price" value="'.$v['price'].'" readonly>
                                                    </div>
                                                </td>
                                                <td class="price-all">'.$v['priceAll'].'</td>
                                                <td>
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control remarks" value="'.$v['remarks'].'" readonly>
                                                    </div>
                                                </td>
                                            </tr>';
                                                        }else{
                                                            echo '          <td>
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control quantity" value="'.$v['quantity'].'">
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control price" value="'.$v['price'].'">
                                                    </div>
                                                </td>
                                                <td class="price-all">'.$v['priceAll'].'</td>

                                                <td>
                                                    <div class="am-form">
                                                        <input type="text" name="" class="am-u-md-12 form-control remarks" value="'.$v['remarks'].'">
                                                    </div>
                                                </td>
                                            </tr>';
                                                      }

                                                    }
                                                ?>
                                            <!-- more data -->
                                            </tbody>
                                        </table>
                                        <button type="button" class="am-btn am-btn-secondary"  data-am-modal="{target: '#changeCommodity', closeViaDimmer: 0, width: 800, height: 500}" id="chooseCommodity">选择商品</button>
                                        <div class="am-fr" style="font-size: 16px;line-height: 37px">
                                            共<span id="class"><?php $attribute = explode('/',$list['attribute']);echo $attribute[0].'</span>类,'.'<span id="quantity-all">'.$attribute[1].'</span>件商品';
                                                ?>

                                        </div>
                                        <hr>
                                    </div>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        合同信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <div class="am-u-sm-12">
                                            <div class="am-g">
                                                <div class="am-u-md-6">
                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="all-money">采购金额(总计)小写</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text"  name="amountSmall" value="<?php echo $list['contractInfo']['amountSmall'] ?>"
                                                                   id="all-money" readonly>
                                                            </div>
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="deliveryType">交货方式</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="deliveryType" value="<?php echo $list['contractInfo']['deliveryType'] ?>"
                                                                   id="deliveryType" readonly>
                                                            </div>
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="freight">运费负担</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="freight" value="<?php echo $list['contractInfo']['freight'] ?>"
                                                                   id="freight" readonly>
                                                            </div>
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="jiaohuoTime">交货时间</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="jiaohuoTime" value="<?php echo $list['contractInfo']['jiaohuoTime'] ?>"
                                                                   id="jiaohuoTime" readonly>
                                                            </div>
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="payWay">支付方式</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="payWay" value="<?php echo $list['contractInfo']['payWay'] ?>"
                                                                   id="payWay" readonly>
                                                            </div>

                                                            
                                                    </div>
                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="address">收货地址及联系人</label>
                                                           <div class="am-u-sm-10">
                                                               <textarea class="am-u-md-11 form-control" rows="5" name="address"
                                                                      id="address" readonly><?php echo $list['contractInfo']['address'] ?></textarea>
                                                           </div>
                                                            
                                                    </div>

                                                </div>

                                                <div class="am-u-md-6">
                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="amountBig">采购金额(总计)大写</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="amountBig" value="<?php echo $list['contractInfo']['amountBig'] ?>"
                                                                   id="amountBig" readonly>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="deliveryAddress">交货地点</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="deliveryAddress" value="<?php echo $list['contractInfo']['deliveryAddress'] ?>"
                                                                   id="deliveryAddress" readonly>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="logistics">物流保价</label>
                                                            <div class="am-u-md-10">
                                                                <input type="text" name="logistics" value="<?php echo $list['contractInfo']['logistics'] ?>"
                                                                   id="logistics" readonly>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="paymentWay">付款方式</label>
                                                            <div class="am-u-md-10">
                                                                <input  type="text"  name="paymentWay" value="<?php echo $list['contractInfo']['paymentWay'] ?>"
                                                                   id="paymentWay" readonly>
                                                            </div>

                                                            
                                                    </div>

                                                    <div class="am-form-group am-u-sm-12">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="invoice">发票交付</label>
                                                            <div class="am-u-md-10">
                                                                <input  type="text"  name="invoice" value="<?php echo $list['contractInfo']['invoice'] ?>"
                                                                   id="invoice" readonly>
                                                            </div>

                                                            
                                                    </div>

                                                </div>
                                                <div class="am-u-md-12">
                                                    
                                                    <div class="am-form-group am-g am-u-md-6">
                                                        <div class="am-u-md-12">
                                                            <button class="am-btn  hover-btn" type="button"
                                                                    data-am-popover="{theme: 'warning',content: '免责事项免责事', trigger: 'hover focus'}">
                                                              免责事项:
                                                            </button>（鼠标移动到标签上字段弹窗显示事项内容）
                                                        </div>
                                                        
                                                    </div>
                                                    <div class="am-form-group am-u-md-6">
                                                        <div class="am-u-md-12">
                                                            <button class="am-btn hover-btn" type="button"
                                                                data-am-popover="{theme: 'warning',content: '免责事项免责事', trigger: 'hover focus'}">
                                                                其它事项:
                                                            </button>（鼠标移动到标签上字段弹窗显示事项内容）
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <hr>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        报价确认单
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <div class="am-u-sm-12">
                                            <div class="am-u-md-6">
                                                <div class="am-form-file am-u-sm-12">
                                                    <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                           for="confirmImg">报价确认单：</label>
                                                    <?php
                                                        if($list['confirmCard']){
                                                            echo '<a href="'.$list['confirmCard'].'" download="报价确认单">
                                                                    <i class="am-icon-download"></i> 下载报价确认单
                                                                </a>';
                                                        }else{
                                                            echo '<a href="javascript:;">
                                                                <i class="am-icon-times-circle"></i> 未上传
                                                            </a>';
                                                        }
                                                    ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <hr>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        付款信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <?php
                                        $arr = [
                                            '预付款','进度款','尾款','质保金',
                                        ];
                                        foreach ($list['payInfo'] as $k=>$v){
                                            echo  '<div class="am-u-md-12 am-form-group"><div class="am-u-md-3">
                                                        <label class="am-u-md-4 am-md-text-right am-padding-left-0" for="">'.$arr[$k].': </label>
                                                        <div class="am-u-md-8">
                                                            <input type="text" name="payInfo[0][prepay]" readonly="" value="'.$v['prepay'].'">
                                                        </div>
                                                    </div>
                                                    <div class="am-u-md-3">
                                                        <div class="am-input-group am-u-md-12">
                                                            <input type="text" class="am-form-field" name="payInfo[0][amount]" value="'.$v['amount'].'" readonly="">
                                                            <span class="am-input-group-label">元</span>
                                                        </div>
                                                    </div>
                                                    <div class="am-u-md-3">
                                                        <label class="am-u-md-4 am-md-text-right am-padding-left-0" for="">付款人员: </label>
                                                        <div class="am-u-md-8">
                                                            <input type="text" name="payInfo[0][payMan]" value="'.$v['payMan'].'" readonly="">
                                                        </div>
                                                    </div>';
                                            if(count($list['payInfo'])-1 == $k){
                                                echo ' <div class="am-u-md-3">
                                                        <label class="am-u-md-4 am-md-text-right am-padding-left-0" for="">付款确状态: </label>
                                                        <button type="button" class="am-btn am-btn-default">未确认</button>
                                                    </div></div>';
                                            }    else{
                                                echo ' <div class="am-u-md-3">
                                                        <label class="am-u-md-4 am-md-text-right am-padding-left-0" for="">付款确状态: </label>
                                                        <button type="button" class="am-btn am-btn-default">已确认</button>
                                                    </div></div>';
                                            }
                                        }
                                        ?>
                                    </div>
                                    <hr>
                                </div>
                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del"> 出产抽检报告单</a>
                                </div>
                                <div class="am-g" style="margin-top: 20px">
                                    <div class="am-u-sm-12">
                                        <div class="am-u-md-6">
                                            <div class="am-form-file am-u-md-12">
                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0" for="">报告单附件：</label>
                                                <div class="am-u-md-10">
                                                    <?php
                                                        if($list['reportCard']){
                                                            echo '<a href="'.$list['reportCard'].'" download="报告单附件">
                                                                    <i class="am-icon-download"></i> 下载报告单附件
                                                                </a>';
                                                        }else{
                                                            echo '<a href="javascript:;">
                                                                <i class="am-icon-times-circle"></i> 未上传
                                                            </a>';
                                                        }
                                                    ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                 </div>
                                 <hr>

                                 <div class="tpl-table-black-operation">
                                 	<a href="javascript:void(0);" class="tpl-table-black-operation-del">物流信息验收</a>
                                 </div>
                                 <div class="am-g" style="margin-top: 20px;">
	                                 <div class="am-g">
		                                 <div class="am-u-sm-12">
                                             <div class="am-g">
                                                 <div class="am-u-md-6">
                                                     <div class="am-form-group am-u-sm-12">
                                                         <label class="am-u-md-2 am-md-text-right am-padding-left-0" for="">物流公司：</label>
                                                         <div class="am-u-md-10">
                                                             <input type="text" name="express" value="<?php echo $list['logisticsInfo']['express']?>" id="" readonly>
                                                         </div>
                                                     </div>
                                                     <div class="am-form-file am-u-sm-12">
                                                         <label class="am-u-md-2 am-md-text-right am-padding-left-0" for="expressCard">物流签收单：</label>
                                                         <div class="am-u-md-10">
                                                             <?php
                                                            if($list['logisticsInfo']['expressCard']){
                                                                echo '<a href="'.$list['logisticsInfo']['expressCard'].'" download="物流签收单">
                                                                            <i class="am-icon-download"></i> 下载物流签收单
                                                                        </a>';
                                                            }else{
                                                                echo '<a href="javascript:;">
                                                                        <i class="am-icon-times-circle"></i> 未上传
                                                                    </a>';
                                                            }
                                                            ?>
                                                         </div>
                                                     </div>
                                                 </div>
                                                 <div class="am-u-md-6">
                                                     <div class="am-form-group am-u-sm-12">
                                                         <label class="am-u-md-2 am-md-text-right am-padding-left-0" for="">快递单号：</label>
                                                         <div class="am-u-md-10">
                                                             <input type="text" name="courierNumber" value="<?php echo $list['logisticsInfo']['courierNumber']?>" id="" readonly>
                                                         </div>
                                                     </div>
                                                     <div class="am-form-file am-u-sm-12">
                                                         <label class="am-u-md-2 am-md-text-right am-padding-left-0" for="terminalCard">终端验收报告：</label>
                                                         <div class="am-u-md-10">
                                                             <?php
                                                            if($list['logisticsInfo']['terminalCard']){
                                                                echo '<a href="'.$list['logisticsInfo']['terminalCard'].'" download="终端验收报告">
                                                                            <i class="am-icon-download"></i> 下载终端验收报告单
                                                                        </a>';
                                                            }else{
                                                                echo '<a href="javascript:;">
                                                                        <i class="am-icon-times-circle"></i> 未上传
                                                                    </a>';
                                                            }
                                                            ?>
                                                         </div>
                                                     </div>
                                                 </div>
                                             </div>
		                                 </div>
	                                 </div>
                                 </div>
                                 <hr>

                                 <div class="tpl-table-black-operation">
                                 	<a href="javascript:void(0);" class="tpl-table-black-operation-del">质押金付款单 </a>
                                 </div>
								<div class="am-u-sm-12"  style="margin-top: 20px;">
									 <div class="am-u-md-6">
									     <div class="am-form-file am-u-sm-12">
									     	<label class="am-u-md-2 am-md-text-right am-padding-left-0" for="pledgeGoldCard">验收单附件：</label>
									        <div class="am-u-md-10">
                                                <?php
                                                if($list['pledgeGoldCard']){
                                                    echo '<a href="'.$list['pledgeGoldCard'].'" download="验收单附件">
                                                                <i class="am-icon-download"></i> 下载验收单附件
                                                            </a>';
                                                }else{
                                                    echo '<a href="javascript:;">
                                                            <i class="am-icon-times-circle"></i> 未上传
                                                        </a>';
                                                }
                                                ?>
									        </div>
									     </div>
									 </div>
								</div>
                                <!-- Row end -->
                            </div>
                            <div class="btn-box">
                                <button onclick="back()" type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="width:220px;margin: 20px;">取消</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/amazeui.datatables.min.js"></script>
<script src="/assets/js/dataTables.responsive.min.js"></script>
<script src="/assets/js/app.js"></script>
<script src="/assets/js/zdy_form.js"></script>

<script>
function back() {
    window.history.back();
}
$(".specification-btn").attr("disabled","disabled");
$("button[id='chooseCommodity']").attr("disabled","disabled");
</script>
</body>

</html>